﻿#if UNITY_EDITOR
using UnityEditor;
/// <summary>
/// 编辑器菜单_XLSX菜单
/// </summary>
public partial class ESF_MenuItem_XLSX : AbsESF_EditorMenuItem
{
    #region 常量
    /// <summary>
    /// 菜单名称
    /// </summary>
    const string mcDevMenuName = "XLSX/";
    /// <summary>
    /// 菜单
    /// </summary>
    const string mcDevMenuRoot = cDevMenuRootPath + mcDevMenuName;
    /// <summary>
    /// Asset菜单
    /// </summary>
    const string mcDevAssetMenu = cDevMenuAssetPath + mcDevMenuName;
    /// <summary>
    /// Hierarchy菜单
    /// </summary>
    const string mcDevHierarchy = cDevMenuHierarchyPath + mcDevMenuName;
    /// <summary>
    /// 菜单优先级
    /// </summary>
    const int mcPriority = 100 * ESF_MenuPriorityConst.XLSX;
    #endregion

    #region Resolver Xlsx Schema
    const string mcResolverXlsxSchema = "Resolver Xlsx Schema";
    /// <summary>
    /// 解析Xlsx表架构
    /// </summary>
    [MenuItem(mcDevMenuRoot + mcResolverXlsxSchema, false, mcPriority)]
    [MenuItem(mcDevAssetMenu + mcResolverXlsxSchema, false, mcPriority)]
    [MenuItem(mcDevHierarchy + mcResolverXlsxSchema, false, mcPriority)]
    [ESF_ProjectSettingMenuItem(mcDevMenuRoot + mcResolverXlsxSchema, "解析XLSX表")]
    static void ESF_MenuItem_ResolverXlsxSchema()
    {
        EditorWindowResolverXlsxSchema window = EditorWindow.GetWindow<EditorWindowResolverXlsxSchema>();
        window.Show();
    }
    #endregion
}
#endif


